package com.etc.togo.service;

import org.hibernate.service.spi.ServiceException;

import com.etc.togo.domain.User;
import com.etc.togo.vo.ResultVO;

public interface IUserService extends IBaseService<User> {
	public ResultVO login(String username, String password) throws ServiceException;

	public ResultVO register(User user) throws ServiceException;

	public ResultVO getByName(String username) throws ServiceException;

	public ResultVO changePassword(String username, String oldPassword, String newPassword) throws ServiceException;

	public ResultVO changePhoneNumber(Long user_id, String phoneNumber) throws ServiceException;

	public ResultVO changeEmail(Long user_id, String email) throws ServiceException;

}
